From 1fa19645a923f81f92c83416b94ff40e1d70f28b Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Tue, 22 Apr 2008 16:34:43 +0000 Subject: [PATCH] Fatal error on some pages when calculating subpage subtitle, reported in #wikimedia-tech --- RELEASE-NOTES | 1 + includes/Skin.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d4d99e39f2..683c4588c3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -209,6 +209,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13793) Special:Whatlinkshere filters wrong - after paginating instead of before * (bug 13796) Show links to parent pages even if some of them are missing * (bug 13816) Filter by main namespace doesn't work on WhatLinksHere +* Fatal error on some pages when calculating subpage subtitle === API changes in 1.13 === diff --git a/includes/Skin.php b/includes/Skin.php index 0b9e3be7fd..5abb40b930 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -896,7 +896,7 @@ END; $growinglink .= $link; $display .= $link; $linkObj = Title::newFromText( $growinglink ); - if( $linkObj->exists() ){ + if( is_object( $linkObj ) && $linkObj->exists() ){ $getlink = $this->makeKnownLinkObj( $linkObj, htmlspecialchars( $display ) ); $c++; if ($c>1) { -- 2.20.1